package com.gadgets.busi.bm03.common.dto.sql;

import com.gadgets.busi.bm03.common.Bm03Constant;
import com.gadgets.framework.common.dto.BaseDTO;

public class IndexInfoDTO extends BaseDTO {
    /**
     * 索引名
     */
    private String indexName;
    /**
     * 约束类型
     */
    private String indexType;
    /**
     * 索引列名
     */
    private String[] indexColumnName;

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = (Bm03Constant.SQL_GEN_INDEX_TYPE.INDEX_UNIQ_IDX.equals(indexType)?"IDX_U_":"IDX_")+indexName;
    }

    public String getIndexType() {
        return indexType;
    }

    public void setIndexType(String indexType) {
        this.indexType = indexType;
    }

    public String[] getIndexColumnName() {
        return indexColumnName;
    }

    public void setIndexColumnName(String[] indexColumnName) {
        this.indexColumnName = indexColumnName;
    }
}
